<%= render 'menu/caidauadmin'%>

<table>
	<tr>
		<td>
			<fieldset align="left">
			<legend><h2>Add new user</h2></legend>
<%= form_tag :action => 'createuser' %>
<table>
	<tr>
		<td>Name:</td>
		<td><%= text_field 'newuser', 'Name'%>  </td>
	</tr>
	<tr>
		<td>Address:</td>
		<td><%= text_field 'newuser', 'Address'%> </td>
	</tr>
	<tr>
		<td>Phone:</td>
		<td><%= text_field 'newuser', 'Phone'%></td>
	</tr>
	<tr>
		<td>Email:</td>
		<td><%= text_field 'newuser', 'Email'%></td>
	</tr>
</table>
	
<%= submit_tag "Submit" %>
<%= $end_form_tag %>
</fieldset>
		</td>
		<td>
			<table class="vienxanh">
  <tr>
    <th>Name</th>
    <th>Address</th>
    <th>Phone</th>
    <th>Email</th>
  
    <th colspan="2">Action</th>
  </tr>

<% @bang.each do |r| %>
 <%if r.Username != "admin" %>
  <tr>
    
   
  
    <td><%= r.Name %></td>
    <td><%= r.Address %></td>
    <td><%= r.Phone %></td>
    <td><%= r.Email %></td>
   
  </tr>
    
<% end %>
<% end %>
<br />


</table>
			
			
		</td>
	</tr>		
	
</table>


